﻿#if (PocketPC || Smartphone || WindowsCE)
#else
using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.Common.Converters
{
    public class ColorConverter : IDbTypeConverter
    {
        private System.Drawing.ColorConverter _colorConverter = new System.Drawing.ColorConverter();

        #region IDbTypeConvertermember

        public object ConvertFromDbType(object value)
        {
            return this._colorConverter.ConvertFromString(value as string);
        }

        public object ConvertToDbType(object value)
        {
            return this._colorConverter.ConvertToString(value);
        }

        #endregion
    }
}
#endif
